package com.cms.service;

import com.cms.entity.RoleSite;
import com.cms.mapper.RoleSiteMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 会员表 服务实现类
 * </p>
 *
 * @author songfayuan
 * @since 2021-11-12
 */
@Service
public class RoleSiteService extends ServiceImpl<RoleSiteMapper, RoleSite> {

    /**
     * 根据角色ID删除角色站点
     *
     * @param roleId
     */
    public void deleteByRoleId(Integer roleId){
        Map<String,Object> columnMap = new HashMap<>();
        columnMap.put("roleId",roleId);
        baseMapper.deleteByMap(columnMap);
    }
}
